package com.itheima.service.impl;

import com.itheima.mapper.UserMapper;
import com.itheima.pojp.UserInfo;
import com.itheima.service.UserInfoService;

public class UserInfoServiceImpl implements UserInfoService {

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public UserInfo findOne(Integer id) {
        return userMapper.findById(id);
    }
}
